<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>GetScriptMaterial</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">GetScriptMaterial()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#3A3966"><b>GetScriptMaterial</b></font>(#Material, Name$)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Get a material defined in an OGRE script file. Scripts are loaded and parsed when calling <a href="../engine3d/parse3dscripts.html">Parse3DScripts()</a>. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Material</i></td>
<td width="90%"> 
A number to identify the new material. <a href="../reference/purebasic_objects.html">#PB_Any</a> 可以用来自动生成这个编码. 

</td></tr>
<tr><td><i>Name$</i></td>
<td> 
 
The name of the material in the script files. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



Nonzero if the material was successfully created, zero otherwise. If <font color="#924B72">#PB_Any</font> was used 
for the #Material parameter then the generated number is returned on success. 

 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=getmaterialcolor.html>GetMaterialColor()</a> - <a href="index.html">Material Index</a> - <a href="ismaterial.html">IsMaterial()</a> -&gt;<br><br>

</body></html>